﻿package  
{
	import flash.display.SimpleButton
	import flash.text.TextField;
	import flash.text.TextFieldAutoSize;
	public class CustomSimpleButton extends SimpleButton
	
	{
		public function CustomSimpleButton(a_caption : String) 
		{
			var up : TextField = new TextField()
			up.autoSize = TextFieldAutoSize.CENTER
			up.text = a_caption
			up.border = true
			up.borderColor = 0x000000
			upState = up
			
			var over : TextField = new TextField()
			over.autoSize = TextFieldAutoSize.CENTER
			over.text = a_caption
			over.border = true
			over.borderColor = 0x00000
			overState = over
			
			var down : TextField = new TextField()
			down.autoSize = TextFieldAutoSize.CENTER
			down.text = a_caption
			down.textColor = 0xffffff
			down.border = true
			down.borderColor = 0x00000
			down.opaqueBackground = true
			down.backgroundColor = 0x000000
			downState = down
			
			hitTestState = up
		}	
	}
}